import Vue from "vue";
import VueI18n from "vue-i18n";

Vue.use(VueI18n);

const i18n = new VueI18n({
  locale: "en",
  messages: {
    en: require("../../assets/lang/en"),
    zh: require("../../assets/lang/zh"),
  },
  silentTranslationWarn: true,
});

i18n.name = {
  en: "english",
  zh: "chinese",
};

export default i18n;
